<template>
  <label>
    {{ label }}
    <input
      v-bind="$attrs"
      v-bind:value="value"
      v-on:input="$emit('input', $event.target.value)"
    />
  </label>
</template>

<script>
export default {
  inheritAttrs: false,
  props: ["label", "value"],
  created(){
    console.log(this.$attrs);
    console.log(this.$root);
    console.log(this.$parent);
    this.$parent.num++;
    console.log(this.$parent.$children);
  }
};
</script>

<style></style>
